<?php
require('config.php');

        $userPhone=$_REQUEST['userPhone'];
        $time=date('Y-m-d H:i:s');
		$sql="select * from `".$oto."_users` where `userPhone`='{$userPhone}' and userFlag='1' LIMIT 1";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$pson=$row;//将取得的所有数据赋值给person_info数组
		}
		if(!isset($pson))
		{
			$data[0]['pan']='false';
			$data[0]['msg']='账号不存在';
		}
		else
		{
			$data[0]['pan']='true';
			$data[0]['msg']=$pson['loginSecret'];
		}
		echo json_encode($data);
?>